<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<%@include file="includes/common/headCommonHtml.jsp" %>
	<script src="<c:url value='/resources/homePage.js'/>"></script>
	<title>LL-Home</title>
	<script src="<c:url value='/resources/epilog.js'/>"></script>
</head>
<body>
<%@include file="includes/common/prologHtml.jsp" %>
<div class="left-nav">
<div class="left-nav-header">Home menu</div>
<ul>
<li class="ln-menu-item-selected ln-home-overview"><a href="#">overview</a>
<li class="ln-home-statistics"><a href="#">my statistics</a>
</ul>
</div><!-- left-nav -->
<div class="main-contents">
<div class="server-message"></div>

<div class="home-tabs tabs-overview">
<div class="to-do">
Home page
</div>
<s:message code="homePage.welcome"/> <%=username%>
<p>
<%
if ("1".equals(loginOkay)) { %>
Here you can find your progress and the material you are learning. Feel free to visit vocabulary and grammar pages to select materials you want to learn.

<%  } else { %>
You can <a href="<c:url value='/signupPage'/>">sign up</a> for free and use all of the free content available in the marketplace.   
<p>In this site you can track your progress, do exercises, tests and interact with others who wants to learn and teach languages. 
<p>There are a lot of materials in the <a href="<c:url value='/otherPages/marketplacePage'/>">marketplace</a> and 
tools to quickly improve your language learning experience.
<p>Please read <a href="<c:url value='/otherPages/faqPage'/>">FAQ</a> page to learn more about the site.
<%  } %>
</div><!-- home-overview -->
<div class="home-tabs tabs-statistics">
<div class="to-do">Here you can find statistics about your vocabulary, and grammar.</div>
</div><!-- home-statistics -->

<c:if test='${username.equals("Admin")}'>
<hr/>
<p>
Admin tools:
<hr/>
<form:form id="formDeleteUser" method="DELETE" action="/learnlang/loginPage">   
<br/>Email:<input id="del_email"/>
<br/>Password:<input id="del_password"/>
<br/><input type="submit" class="delete" value="Delete User" onclick="admin_deleteUser()"/> 
</form:form>
<hr/>
</c:if>

<%@include file="includes/common/epilogHtml.jsp" %>
</body>
</html>
